import React, { Component } from 'react'
import { NavLink, Redirect } from 'react-router-dom'
import { addRoutes } from '../high'

class Home2 extends Component {
    render() {
        // console.log(this.props)
        return (
            <div>
                {/* <button onClick={() => {
                    this.props.history.push('/about')
                }}>点击跳转</button>---首页2 */}

                {/* <NavLink to="/home2/one">11</NavLink>---
                <NavLink to="/home2/two">22</NavLink>---
                <NavLink to="/home2/three">33</NavLink> */}

                Home2

                {/* <Redirect to="/home2/one"/> */}
            </div>
        )
    }
}

export default addRoutes(Home2)
